<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>初始Vue</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="dome">
        <!--  -->
        
        <!-- 指令语法 -->
        <a v-bind:href="url">点击跳转百度</a>
        <!-- 插值语法 -->
        <h1>HELLO,{{name}}</h1>
        <h2>年龄:{{age}}</h2>
        <h3>性别:{{gender}}</h3>
        <input type="text" v-model:value="gender">
    </div>
    <script>
        Vue.config.productionTip = false;
        new Vue({
            el:'#dome',
            data:{
                name:'丁小山',
                age:'38',
                gender:'不好说',
                url:'http://www.baidu.com'
            }
        })
    </script>
</body>
</html>